<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>

<div id="app">
    <p v-if="boolean">当V-IF指令的值为TRUE时可见此内容</p>
</div>

<script type="text/javascript">
    let viewModel = new Vue({
       el : "#app",
       data : {
           boolean : true
       }
    });
</script>

<!-- 在浏览器控制台输入 viewModel.boolean = false 将会隐藏元素 -->

</body>
</html>